package com.wfl.sampling.service;
import com.wfl.sampling.entity.Activity;
import java.util.List;
import java.util.Map;
/**
 * @author gefangjie
 */
public interface ActivityService {
//返回所有活动list
    List<Map<String, Object>> listAllActivity();
//条件查询
    List<Activity> findActivityByCondition(Activity activity);
//活动id查询
    List<Activity> findActivityByActivityId(Integer activityId);
//通过活动id修改活动
    boolean modifyActivityById(Activity activity);
//活动添加
    boolean addActivity(Activity activity);

//    int findMaxId(Activity activity);

    //活动数量计数
    int countActivity(Activity activity);

    int findMaxId();
//设置活动id
    int  setActivityId(Activity activity);
    //通过活动id查询我的一系列活动
    List<Activity> findActivitiesByActivityIds(List<Integer> activityIds);
}
